package com.yunxi.service.localService.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.freeze.AmountFreezeMapper;
import com.yunxi.model.freeze.AmountFreeze;
import com.yunxi.order.pojo.OrderModifyApplyRespVO;
import com.yunxi.order.pojo.PartnerFreezeAmountDetailRespVO;
import com.yunxi.order.pojo.PartnerFreezeAmountReqVO;
import com.yunxi.order.pojo.PartnerFreezeAmountRespVO;
import com.yunxi.service.localService.AmountFreezeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2019-06-14
 */
@Service(value = "amountFreezeServiceImpl")
public class AmountFreezeServiceImpl extends ServiceImplPlus<AmountFreezeMapper, AmountFreeze> implements AmountFreezeService {
    @Override
    public PageInfo listPartnerFreezeAmount(PartnerFreezeAmountReqVO reqVO,Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        List<PartnerFreezeAmountRespVO> resp = this.baseMapper.listPartnerFreezeAmount(reqVO);
        PageInfo<PartnerFreezeAmountRespVO> pageInfo = new PageInfo<>(resp);
        return pageInfo;
    }

    @Override
    public PageInfo listPartnerFreezeAmountDetail(PartnerFreezeAmountReqVO reqVO, Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        List<PartnerFreezeAmountDetailRespVO> resp = this.baseMapper.listPartnerFreezeAmountDetail(reqVO);
        PageInfo<PartnerFreezeAmountDetailRespVO> pageInfo = new PageInfo<>(resp);
        return pageInfo;
    }
}
